package base.net
{
	import base.net.socket.SocketController;

	public class NetFactory
	{
		/**
		 *Socket控制器 
		 */		
		private var _socketController:SocketController;
		/**
		 *Socket控制器 
		 */
		public function get socketController():SocketController
		{
			return _socketController;
		}

		private static var _instance:NetFactory;
		public static function get Instance() : NetFactory
		{
			if(_instance == null)
			{
				_instance = new NetFactory();
			}
			return _instance;
		}
		
		public function NetFactory()
		{
			_socketController=new SocketController()
		}
	}
}